package com.lcxw.hxzbadmin.service.baseservice;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.lcxw.hxzbadmin.dao.adminmapper.LiveTypeMapper;
import com.lcxw.hxzbadmin.entity.pojo.LiveType;

@Component
public class LiveTypeService {

    @Resource
    LiveTypeMapper liveTypeMapper;

    public int addLiveType(LiveType liveType) throws Exception{
        return liveTypeMapper.addLiveType(liveType);
    }

    public int deleteLiveType(int id) throws Exception{
        return liveTypeMapper.deleteLiveType(id);
    }

    public List<LiveType> getAllLiveTypes()throws Exception {
      return liveTypeMapper.getAllLiveTypes();
    }

    public LiveType getLiveTypeById(int id)throws Exception {
      return liveTypeMapper.getLiveTypeById(id);
    }

    public int updateLiveType(LiveType liveType)throws Exception {
        return liveTypeMapper.updateLiveType(liveType);
    }
}
